package com.xwt.pattern.decorator;

import com.xwt.pattern.utils.Utils;

/**
 * Author:  Steven Xiao
 * Description:
 * Date:  2016/3/23
 * Time:  13:30
 */
public class HighScoreDecorator extends Decorator{
    public HighScoreDecorator(SchoolReport sr) {
        super(sr);
    }

    //我要汇报最高成绩
    private void reportHighScore(){
        Utils.println("这次考试语言最高是75，数学是78，自然是80");
    }

    //最高成绩我要做老爸看成绩单前告诉他，否则等他一看，就抡起笤帚有揍我，我那还有机会说呀
    @Override
    public void report() {
        this.reportHighScore();
        super.report();
    }
}
